Received: from sashimi.wwa.com (sashimi.wwa.com [198.49.174.1]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id TAA19789 for <blitz-list@helsinki.fi>; Thu, 21 Jul 1994 19:49:55 +0300
Received: by sashimi.wwa.com (Smail3.1.28.1 #8)
id m0qR1Km-000bmKC; Thu, 21 Jul 94 11:51 CDT
Received: by alpha.IXO.COM (V1.17-beta/Amiga)
id <0ueg@alpha.IXO.COM>; Thu, 21 Jul 94 17:17:49 CET
Message-ID: <F226EB91@alpha.ixo.com>
Date: 21 Jul 94 12:15:49 CET
Organization: Alpha Station BBS - 011/333528, Diepenbeek, BELGIUM
X-Mailer: AmiGate 0.17e (27.6.94)
From: stef@alpha.IXO.COM (Stephan Kortleven)
To: blitz-list@helsinki.fi
Subject: Re: Are numbers REAL?
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Status:
Status: RO
In a message of 20 Jul 94 GEORGAKAKIS,LOUIS,MR wrote to me:
GLM> Can someone tell me why, when I write down this little program, it
GLM> doesn't do what I tell it to? Here:
GLM> Print 5.7896
GLM> MouseWait
GLM> This should print out 5.7896 in a Shell window right? WRONG! It prints
GLM> out:
GLM> 5.789599
GLM> Why? WHY!?
GLM> Sigh.
Standart BlitzII is using a double precission var known as floats. That means,
if you put none extention after the var, double precission var are used (.f).
Double precission var have one big disadvantage. There are not quite exact in
calculating numbers. But you can go from a range of +/-9*10^18, you have to deal
with this big disadvantage. So, a solution to you prblem will be very simple.
Try to use (.q) singe precission var known as quick. If you have enough with var
going from a range +/-32768.0000. Plus they have a advantage to. they are only